// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_MST_VIEW_BLUEPRINT_HISTORY
// * CreateDate    : 2011/9/27 11:24:17
// * Creater       : CodeSmith
// * LastChangeDate: 2011/9/27 11:24:17
// * LastChanger   : 2011/9/27 11:24:17
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
	[Serializable]
	public partial class MstViewBlueprintHistoryEntity : EntityBase
    {
        public MstViewBlueprintHistoryTable TableSchema
        {
            get
            {
                return MstViewBlueprintHistoryTable.Current;
            }
		}
		
		public MstViewBlueprintHistoryEntity()
        {

        }
		
		public MstViewBlueprintHistoryEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.HistoryId = Convert.ToString(CommonFunctions.ToObject(dr["HISTORY_ID"]));
			this.BlueprintId = Convert.ToString(CommonFunctions.ToObject(dr["BLUEPRINT_ID"]));
			this.PersonId = Convert.ToString(CommonFunctions.ToObject(dr["PERSON_ID"]));
			this.HistoryDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["HISTORY_DATE"]));
			this.HistoryType = Convert.ToString(CommonFunctions.ToObject(dr["HISTORY_TYPE"]));
			this.MachineName = Convert.ToString(CommonFunctions.ToObject(dr["MACHINE_NAME"]));
			this.Rematk = Convert.ToString(CommonFunctions.ToObject(dr["REMATK"]));
        }
		
		public MstViewBlueprintHistoryEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.HistoryId = Convert.ToString(CommonFunctions.ToObject(dr["HISTORY_ID"]));
			this.BlueprintId = Convert.ToString(CommonFunctions.ToObject(dr["BLUEPRINT_ID"]));
			this.PersonId = Convert.ToString(CommonFunctions.ToObject(dr["PERSON_ID"]));
			this.HistoryDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["HISTORY_DATE"]));
			this.HistoryType = Convert.ToString(CommonFunctions.ToObject(dr["HISTORY_TYPE"]));
			this.MachineName = Convert.ToString(CommonFunctions.ToObject(dr["MACHINE_NAME"]));
			this.Rematk = Convert.ToString(CommonFunctions.ToObject(dr["REMATK"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return MstViewBlueprintHistoryTable.Current;
            }
        }
		
		#region Perporty List
        public string HistoryId
        {
            get { return Convert.ToString(GetData(MstViewBlueprintHistoryTable.C_HISTORY_ID)); }
            set { SetData(MstViewBlueprintHistoryTable.C_HISTORY_ID, value); }
        }
		
        public string BlueprintId
        {
            get { return Convert.ToString(GetData(MstViewBlueprintHistoryTable.C_BLUEPRINT_ID)); }
            set { SetData(MstViewBlueprintHistoryTable.C_BLUEPRINT_ID, value); }
        }
		
        public string PersonId
        {
            get { return Convert.ToString(GetData(MstViewBlueprintHistoryTable.C_PERSON_ID)); }
            set { SetData(MstViewBlueprintHistoryTable.C_PERSON_ID, value); }
        }
		
        public DateTime HistoryDate
        {
            get { return Convert.ToDateTime(GetData(MstViewBlueprintHistoryTable.C_HISTORY_DATE)); }
            set { SetData(MstViewBlueprintHistoryTable.C_HISTORY_DATE, value); }
        }
		
        public string HistoryType
        {
            get { return Convert.ToString(GetData(MstViewBlueprintHistoryTable.C_HISTORY_TYPE)); }
            set { SetData(MstViewBlueprintHistoryTable.C_HISTORY_TYPE, value); }
        }
		
        public string MachineName
        {
            get { return Convert.ToString(GetData(MstViewBlueprintHistoryTable.C_MACHINE_NAME)); }
            set { SetData(MstViewBlueprintHistoryTable.C_MACHINE_NAME, value); }
        }
		
        public string Rematk
        {
            get { return Convert.ToString(GetData(MstViewBlueprintHistoryTable.C_REMATK)); }
            set { SetData(MstViewBlueprintHistoryTable.C_REMATK, value); }
        }
		
		#endregion
	}
	
	
}	

